//
//  HomeBottomViewController.m
//  printer
//
//  Created by songgoo on 2017/7/12.
//  Copyright © 2017年 puty. All rights reserved.
//

#import "HomeBottomViewController.h"
#import "PTNewLabelViewController.h"
#import "PTPrintLabelViewController.h"
#import "PTTagTemplateViewController.h"
#import "PTHistoricalRecordViewController.h"
#import "PTConnectionMachineViewController.h"
#import "PTSettingViewController.h"

@interface HomeBottomViewController ()

@end



@implementation HomeBottomViewController {
    PTNewLabelViewController *_newLabelVC;
    PTPrintLabelViewController *_printLabelVC;
    PTTagTemplateViewController *_tagTemplateVC;
    PTHistoricalRecordViewController *_historicalRecordVC;
    PTConnectionMachineViewController *_connectionMachineVC;
    PTSettingViewController *_settingVC;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    NSLog(@"哈哈哈哈哈");
    
}

- (IBAction)buttonClick:(UIButton *)sender {
    
    switch (sender.tag) {
        case 1001:
            NSLog(@"新建标签");
            _newLabelVC = [[PTNewLabelViewController alloc] init];
            [self.navigationController pushViewController:_newLabelVC animated:YES];
            break;
            
        case 1002:
            NSLog(@"打印标签");
            _printLabelVC = [[PTPrintLabelViewController alloc] init];
            [self.navigationController pushViewController:_printLabelVC animated:YES];
            break;
            
        case 1003:
            NSLog(@"标签模版");
            _tagTemplateVC = [[PTTagTemplateViewController alloc] init];
            [self.navigationController pushViewController:_tagTemplateVC animated:YES];
            break;
            
        case 1004:
            NSLog(@"历史记录");
            _historicalRecordVC = [[PTHistoricalRecordViewController alloc] init];
            [self.navigationController pushViewController:_historicalRecordVC animated:YES];
            break;
            
        case 1005:
            NSLog(@"连接机器");
            _connectionMachineVC = [[PTConnectionMachineViewController alloc] init];
            [self.navigationController pushViewController:_connectionMachineVC animated:YES];
            break;
            
        case 1006:
            NSLog(@"设置");
            _settingVC = [[PTSettingViewController alloc] init];
            [self.navigationController pushViewController:_settingVC animated:YES];
            break;
            
        default:
            break;
    }
    
}





@end
